|
|
|
|
|
- Handling errors
- Position in the file
- ANSI/Unicode management
<DiskFile variable>.ReadLine (Función) Reads a line in an external file.
Sintaxis <Result>: Cadena de caracteres o cadena de caracteres Unicode - Line read in an external file.
- EOT constant if the end of file has been reached.
- Empty string ("") if an error occurred. In this case, the ErrorOccurred variable is set to True.
Note: A line ends with a carriage return (CR).
<File used>: Variable de tipo DiskFile Name of the DiskFile variable initialized with <DiskFile variable>Abrir or <DiskFile variable>.Create.
<Separator>: Cadena de caracteres Separator used between the lines. The default separator is the Carriage Return (CR).
Observaciones Handling errors <DiskFile variable>.ReadLine throws an error in the following cases: - the file is not opened,
- the file is not accessible in read mode,
- the file is locked by another computer or by another application. <DiskFile variable>.Unlock is used to unlock an external file.
Position in the file When opening a file, the current position corresponds to: - the first file byte (by default),
- the last byte of the file is the file is opened in "addition" mode (foAdd constant).
<DiskFile variable>.ReadLine reads the specified elements from the current position. Once <DiskFile variable>.ReadLine has been executed, the current position is set to the last byte read. <DiskFile variable>.ReadLine returns the EOT constant if the end of the file has been reached. Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|